package com.yanqu.road.entity.activity.fellingtrees.config;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.utils.string.StringUtils;

import java.math.BigInteger;
import java.util.List;

@FieldTypeAnnotation(tableName = "t_s_activity_ftrees_level")
public class FellingTreesLevelConfig {

    @FieldTypeAnnotation(desc = "活动id", select = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "节奏ID")
    private String id;
    @FieldTypeAnnotation(desc = "节奏等级")
    private int level;
    @FieldTypeAnnotation(desc = "桂树血量")
    private BigInteger hp;
    @FieldTypeAnnotation(desc = "桂树掉落金币")
    private BigInteger gold;
    @FieldTypeAnnotation(desc = "掉落等级")
    private int dropLevel;
    @FieldTypeAnnotation(desc = "是否首次保底法宝")
    private int dropFirstWeapon;
    @FieldTypeAnnotation(desc = "掉落法宝概率")
    private String dropWeaponPro;
    @FieldTypeAnnotation(desc = "掉落药材概率")
    private int dropMedicialMaterial;
    @FieldTypeAnnotation(desc = "掉落灵珠概率")
    private int dropSpiritBead;
    @FieldTypeAnnotation(desc = "装备基础法力")
    private BigInteger weaponAtt;
    @FieldTypeAnnotation(desc = "售卖装备价格")
    private BigInteger sellGold;
    @FieldTypeAnnotation(desc = "强化装备基础价格")
    private BigInteger strengthGold;
    @FieldTypeAnnotation(desc = "自动熔炼装备等级")
    private String autoSellWeaponLevel;
    @FieldTypeAnnotation(desc = "掉落月灵石概率")
    private int dropMoonStone;

    private List<Integer> dropWeaponProList;
    private List<Integer> autoSellWeaponLevelList;

    public void init() {
        dropWeaponProList = StringUtils.stringToIntegerList(dropWeaponPro, "\\|");
        autoSellWeaponLevelList = StringUtils.stringToIntegerList(autoSellWeaponLevel, "\\|");
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public BigInteger getHp() {
        return hp;
    }

    public void setHp(BigInteger hp) {
        this.hp = hp;
    }

    public BigInteger getGold() {
        return gold;
    }

    public void setGold(BigInteger gold) {
        this.gold = gold;
    }

    public int getDropLevel() {
        return dropLevel;
    }

    public void setDropLevel(int dropLevel) {
        this.dropLevel = dropLevel;
    }

    public int getDropFirstWeapon() {
        return dropFirstWeapon;
    }

    public void setDropFirstWeapon(int dropFirstWeapon) {
        this.dropFirstWeapon = dropFirstWeapon;
    }

    public String getDropWeaponPro() {
        return dropWeaponPro;
    }

    public void setDropWeaponPro(String dropWeaponPro) {
        this.dropWeaponPro = dropWeaponPro;
    }

    public int getDropMedicialMaterial() {
        return dropMedicialMaterial;
    }

    public void setDropMedicialMaterial(int dropMedicialMaterial) {
        this.dropMedicialMaterial = dropMedicialMaterial;
    }

    public int getDropSpiritBead() {
        return dropSpiritBead;
    }

    public void setDropSpiritBead(int dropSpiritBead) {
        this.dropSpiritBead = dropSpiritBead;
    }

    public BigInteger getWeaponAtt() {
        return weaponAtt;
    }

    public void setWeaponAtt(BigInteger weaponAtt) {
        this.weaponAtt = weaponAtt;
    }

    public BigInteger getSellGold() {
        return sellGold;
    }

    public void setSellGold(BigInteger sellGold) {
        this.sellGold = sellGold;
    }

    public BigInteger getStrengthGold() {
        return strengthGold;
    }

    public void setStrengthGold(BigInteger strengthGold) {
        this.strengthGold = strengthGold;
    }

    public List<Integer> getDropWeaponProList() {
        return dropWeaponProList;
    }

    public void setDropWeaponProList(List<Integer> dropWeaponProList) {
        this.dropWeaponProList = dropWeaponProList;
    }

    public String getAutoSellWeaponLevel() {
        return autoSellWeaponLevel;
    }

    public void setAutoSellWeaponLevel(String autoSellWeaponLevel) {
        this.autoSellWeaponLevel = autoSellWeaponLevel;
    }

    public List<Integer> getAutoSellWeaponLevelList() {
        return autoSellWeaponLevelList;
    }

    public void setAutoSellWeaponLevelList(List<Integer> autoSellWeaponLevelList) {
        this.autoSellWeaponLevelList = autoSellWeaponLevelList;
    }

    public int getDropMoonStone() {
        return dropMoonStone;
    }

    public void setDropMoonStone(int dropMoonStone) {
        this.dropMoonStone = dropMoonStone;
    }
}
